package org.locker.domain.bo;

import org.locker.domain.ManagerFees;
import org.locker.common.mybatis.core.domain.BaseEntity;
import org.locker.common.core.validate.*;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 代理商费用记录(场地)业务对象 lk_manager_fees
 *
 * @author winnie
 * @date 2023-10-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ManagerFees.class, reverseConvertGenerate = false)
public class ManagerFeesBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long managerFeesId;

    /**
     * 管理员ID
     */
    @NotNull(message = "管理员ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sysUserId;

    /**
     * 场地ID
     */
    @NotNull(message = "场地ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long positionId;

    /**
     * 总分成金额(来源订单累计)
     */
    @NotNull(message = "总分成金额(来源订单累计)不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal amount;

    /**
     * 冻结金额
     */
    @NotNull(message = "冻结金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal freezeAmount;

    /**
     * 剩余可提现余额
     */
    @NotNull(message = "剩余可提现余额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal residueAmount;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    private Date version;


}
